<template>
    <div class="content">
        <div class="left-con">{{$route.meta.title}}</div>
        <div class="right-con">
            <div class="upNav">
               
                <div class="nav" @click="goManage('/home')">返回首页</div>
            </div>
        </div>
    </div>
  </template>
  
  <script>
  import bus from "@/bus.js"
  export default {
    name: 'headersCom',
    props: {
    
    },
    data(){
        return{
            title:"房间列表"
        }
    },
    mounted(){
       
        // bus.$on("routerTitle", data =>{
        //     this.title = data
        //     // console.log(data)
        // })

    },
    created(){
        
            
    },
    methods:{
        
        goManage(path){
            if(path){
                this.$router.push({ path: path})
            }
        
        }
    },
    watch:{

    }
  }
  </script>
  
  <!-- Add "scoped" attribute to limit CSS to this component only -->
  <style lang="scss" scoped>
   $allbackcolor: rgba(11,44,108,1);
  $selectcolor: rgba(1,18,67, 1);
    .content{
        background-color:  $selectcolor;
        height: 50px;
        width: 100%;
        color: #fff;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        line-height: 50px;
        .left-con{
            display: inline-block;
            font-size: 18px;
            margin-left: 20px;
            
        }
        .right-con{
            display: inline-block;
            margin-right: 20px;

        }
    }
    .upNav{
            float: right;
            line-height: 50px;
            display: flex;
            flex-direction: row;

            font-size: 13px;
            margin-right: 20px;

            .nav{
               
                margin-right: 10px;
                cursor: pointer;
            }
        }
  </style>
  